

package com.uit.ecommerce.bo;

import com.uit.ecommerce.access.mapper.WeatherAreaMapper;
import com.uit.ecommerce.dto.WeatherAreaDTO;
import java.util.ArrayList;

public class WeatherAreaBO {
public ArrayList<WeatherAreaDTO> GetAllWeatherArea() throws Exception{
    WeatherAreaMapper WAM=new WeatherAreaMapper();
    return WAM.GetAllWeatherArea();
}
 public void insertWeatherArea(WeatherAreaDTO cls) throws Exception{
      WeatherAreaMapper WAM=new WeatherAreaMapper();
      WAM.insertWeatherArea(cls);
 }
 public void DeleteWeatherArea(WeatherAreaDTO cls) throws Exception{
      WeatherAreaMapper WAM=new WeatherAreaMapper();
      WAM.DeleteWeatherArea(cls);
 }
 public boolean  checkWeatherAreaExit(WeatherAreaDTO cls) throws Exception{
     WeatherAreaMapper WAM=new WeatherAreaMapper();
     return WAM.checkWeatherAreaExit(cls);
 }
 public ArrayList<WeatherAreaDTO> GetAllWeatherAreaByArea(String Area) throws Exception{
      WeatherAreaMapper WAM=new WeatherAreaMapper();
     return WAM.GetAllWeatherAreaByArea(Area);
 }
 public ArrayList<WeatherAreaDTO> GetAllWeatherAreaByID(String Id) throws Exception{
     WeatherAreaMapper WAM=new WeatherAreaMapper();
     return WAM.GetAllWeatherAreaByID(Id);
 }
 public ArrayList<WeatherAreaDTO> GetAllWeatherAreaByDate(String Date) throws Exception{
      WeatherAreaMapper WAM=new WeatherAreaMapper();
     return WAM.GetAllWeatherAreaByDate(Date);
 }
  public WeatherAreaDTO GetWeatherAreaByDateAndName(String Date,String Area) throws Exception{
      WeatherAreaMapper WAM=new WeatherAreaMapper();
     return WAM.GetWeatherAreaByDateAndName(Date, Area);
 }
  public WeatherAreaDTO GetWeatherAreaMinTemp(String areaCode) throws Exception{
      WeatherAreaMapper WAM=new WeatherAreaMapper();
     return WAM.GetWeatherAreaMinTemp(areaCode);
  }
  public WeatherAreaDTO GetWeatherAreaMaxTemp(String areaCode) throws Exception{
      WeatherAreaMapper WAM=new WeatherAreaMapper();
     return WAM.GetWeatherAreaMaxTemp(areaCode);
  }
}
